<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<f:view>
		<h:form>

			<fieldset>
				<legend style="margin-left: 0px;">Cadastro de Curso</legend>

				<div id="cads">

					<h:panelGrid columns="2">

						<h:outputText value="Nome" />

						<h:inputText id="nomeMedausente" value="#{CursoBean.curso.nome}"
							required="true"
							requiredMessage="#{msgs['curso.nomeCursoAusente']}"
							style="width:200px;" />

						<h:outputText value="Tipo" />

						<h:selectOneListbox value="Tipo" id="tipo_curso" size="1"
							style="width:205px;" styleClass="campo">
							<f:selectItem itemValue="Selecione" />
							<f:selectItem itemValue="Graduacao" />
							<f:selectItem itemValue="Mestrado" />
							<f:selectItem itemValue="Doutorado" />

						</h:selectOneListbox>


						<h:outputText value="Turno" />

						<h:selectOneListbox value="#{CursoBean.curso.turno}"
							id="turno_curso" size="1" style="width:205px;" styleClass="campo">
							<f:selectItem itemValue="Selecione" />
							<f:selectItem itemValue="Manha" />
							<f:selectItem itemValue="Tarde" />
							<f:selectItem itemValue="Noite" />

						</h:selectOneListbox>

						<h:outputText value="Duração" />

						<h:inputText id="duracaoAusente"
							value="#{CursoBean.curso.duracao}" required="true"
							requiredMessage="#{msgs['curso.duracaoAusente']}"
							style="width:200px;" />

						<h:outputText value="Duração" />


					</h:panelGrid>


					<h:commandButton type="submit" value="Cadastrar"
						action="#{CursoBean.CadastrarCurso}" styleClass="botoes"
						style="margin-left: 0px;" />

					<h:commandButton value="Cancelar" action="cancelar"
						immediate="true" styleClass="botoes" />

					<br>
					<hr>

				</div>

				<div="Avisos">
					<fieldset>
						<legend style="margin-left: 0px;">Avisos</legend>

						<h:messages style="color:red;"></h:messages>
					</fieldset>

				</div>

			</fieldset>
		</h:form>


	</f:view>
</body>
</html>